package com.hq.controller;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.hq.entity.User;
import com.hq.service.UserService;

@Controller
public class IndexController {
    @Autowired
    UserService userService;
	
	@RequestMapping("/s.do")
	public ModelAndView viewIndex() {
		ModelAndView mv = new ModelAndView();
		List<User> users = userService.getList();
		System.out.println(users);
		return mv;
	}
}
